Private Row Types: Abstracting the Unnamed

نویسنده

  • Jacques Garrigue
چکیده

In addition to traditional record and variant types, Objective Caml has structurally polymorphic types, for objects and polymorphic variants. These types allow new forms of polymorphic programming, but they have a limitation when used in combination with modules: there is no way to abstract their polymorphism in a signature. Private row types remedy this situation: they are manifest types whose “row-variable” is left abstract, so that an implementation may instantiate it freely. They have useful applications even in the absence of functors. Combined with recursive modules, they provide an original solution to the expression problem.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Concept and Provenance of Unnamed, Indistinguishable Types

Unnamed, indistinguishable types (UITs) are a useful feature in a constraint specification language since they enable the specification of problems at a higher level of abstraction. There is, however, some debate as to the concept of UITs and their provenance. This note is intended to clarify this matter. Specifically, it describes UITs, shows that they originated in our work [1] on Essence, an...

متن کامل

Unsteady aerodynamic performance of Dual-Row H-Darrieus vertical axis wind turbine

H-rotor Vertical Axis Wind Turbine (VAWT) is one of the most efficient energy suppliers which have been investigated in many recent types of research. The aim of this work is to study the aerodynamic performance of a doubled-row H-Darrieus VAWT. First, an ordinary three-bladed VAWT with NACA4415 profile is simulated by means of 3D computational fluid dynamics (CFD) and results are compared to a...

متن کامل

RELIABILITY MEASURES AND SENSITIVITY ANALYSIS OF A COMPLEX MATRIX SYSTEM INCLUDING POWER FAILURE

This paper investigates the reliability characteristics of a complex system having nine subsystems arranged in the form of 3x3 matrix in which each row contains three subsystems. The configuration of the row is of the type 2-out-of-3: F. Each subsystem has n units connected in series. The system fails if any one row containing three subsystems fails. The considered system analyzed incorporating...

متن کامل

Electrophysiological correlates of recollecting faces of known and unknown individuals.

We recorded brain potentials from healthy human subjects during a recognition test in order to monitor neural processing associated with face recollection. Subjects first attempted to memorize 40 faces; half were accompanied by a voice simulating that person speaking (e.g., "I'm Jimmy and I was a roadie for the Grateful Dead") and half were presented in silence. In the test phase, subjects atte...

متن کامل

Lower Bounds

Proof. We induct on d. Exercise 1 proved the base case d = 1. Consider d ≥ 2 and a d-disjunct matrix M with t = t(d,N) rows and N columns. Let N(w) denote the number of columns of M with weight w. (The weight of a column is the number of 1s in it.) A row i ∈ [t] is said to be private for a column j if j is the only column in the matrix having a 1 on row i. If column Mj has weight at most d, the...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006